docs(#911): add build and validation workflow to CLAUDE.md - #912
docs(#911): add build and validation workflow to CLAUDE.md#912fullsend-ai-coder[bot] wants to merge 1 commit into
Conversation
Document the mandatory pre-commit and script-build workflow that agents must follow when modifying shell scripts in this repo: - Run `make script-build` after changing any `.src.sh` source file or `scripts/lib/*.lib.sh` library to regenerate bundled `.sh` artifacts. - Run `pre-commit run --all-files` before committing and fix all violations, including info-level shellcheck codes (SC2030, SC2031, SC2034, SC2153) that are not excluded by the repo config. - Stage both the source `.src.sh` and generated `.sh` together. - Use `# shellcheck disable=SC2153` for variable name clashes rather than renaming variables. - Run `make test` for the full test suite. This addresses the root cause of 5 failed agent runs on #860/#872 where agents had no way to discover these repo-specific build and lint requirements. Note: pre-commit could not run in the sandbox (network policy blocked hook environment installation). The post-script runs an authoritative pre-commit check on the runner. Closes #911
|
🤖 Finished Review · ✅ Success · Started 1:20 AM UTC · Completed 1:32 AM UTC Commit: |
ReviewFindingsMedium
Low
|
Summary
CLAUDE.mddocumenting the mandatory workflow for agents modifying shell scripts in this repo.make script-build), pre-commit requirements (including non-excluded shellcheck codes), co-staging of.src.shand.shfiles, and themake testcommand.Changes
CLAUDE.md— added three subsections:.src.sh→.shbundle architecture and themake script-buildcommand.pre-commit run --all-filesrequirement, lists which shellcheck codes are excluded (SC1091, SC2001, SC2016) and which are blocking (SC2030, SC2031, SC2034, SC2153), and explains the# shellcheck disable=SC2153pattern for variable name clashes.make testas the test command.Testing
.pre-commit-config.yaml(args: ["-x", "-e", "SC1091,SC2001,SC2016"]).make script-buildtarget exists inMakefileand rebuilds all 12.src.shfiles.make testis the correct test command.Closes #911
Post-script verification
agent/911-document-precommit-workflow)d491a976c945a03a3a46e96b64405cc7e168a476..HEAD)